import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    //  项目登记
    {
      path: '/',
      name: '项目登记',
      component: () => import('@/page/check/checkIn'),
      redirect: '/checkIn'
    },
    {
      path: '/checkIn',
      name: '项目登记',
      component: () => import('@/page/check/checkIn')
    },
    {
      path: '/checkinAdd',
      name: '项目登记-新增',
      component: () => import('@/page/check/checkinAdd')
    },
    {
      path: '/project',
      name: '项目立项',
      component: () => import('@/page/project/index')
    }, {
      path: '/projectCheckIn',
      name: '项目立项-新增-选择登记',
      component: () => import('@/page/project/projectCheckIn')
    }, {
      path: '/projectMsg',
      name: '项目立项-新增-信息填写',
      component: () => import('@/page/project/projectMsg')
    }, {
      path: '/projectTab',
      name: '项目立项-新增-tab页',
      component: () => import('@/page/project/projectTab')
    }, {
      path: '/implement',
      name: '项目实施-列表',
      component: () => import('@/page/implement/index')
    }, {
      path: '/task',
      name: '项目实施-具体项目任务列表',
      component: () => import('@/page/implement/task')
    },
    {
      path: '/taskAdd',
      name: '项目实施-具体项目任务列表',
      component: () => import('@/page/implement/taskAdd')
    },
    {
      path: '/personnel',
      name: '项目实施-具体人员任务列表',
      component: () => import('@/page/implement/personnel')
    }, {
      path: '/date',
      name: '项目实施-打卡',
      component: () => import('@/page/implement/date')
    }, {
      path: '/operate',
      name: '项目经营-主页面',
      component: () => import('@/page/operate/index')
    }, {
      path: '/income',
      name: '项目经营-收入主页面',
      component: () => import('@/page/operate/income')
    }, {
      path: '/invoice',
      name: '项目经营-开票列表',
      component: () => import('@/page/operate/Invoice')
    }, {
      path: '/invoiceAdd',
      name: '项目经营-开票新增',
      component: () => import('@/page/operate/InvoiceAdd')
    }, {
      path: '/expenditure',
      name: '项目经营-支出主页面',
      component: () => import('@/page/operate/expenditure')
    }, {
      path: '/expenditureAdd',
      name: '项目经营-支出新增',
      component: () => import('@/page/operate/expenditureAdd')
    }, {
      path: '/costList',
      name: '项目经营-项目人力成本列表',
      component: () => import('@/page/operate/costList')
    }, {
      path: '/subcontract',
      name: '项目分包-分包合同列表',
      component: () => import('@/page/subcontract/index')
    }, {
      path: '/subcontractAdd',
      name: '项目分包-分包合同列表',
      component: () => import('@/page/subcontract/subcontractAdd')
    }, {
      path: '/bill',
      name: '项目分包-开票列表',
      component: () => import('@/page/subcontract/bill')
    },{
      path: '/external',
      name: '项目分包-外协单位列表',
      component: () => import('@/page/subcontract/external')
    }, {
      path: '/externalAdd',
      name: '项目分包-外协单位新增',
      component: () => import('@/page/subcontract/externalAdd')
    }, {
      path: '/assess',
      name: '项目考核-部门考核',
      component: () => import('@/page/assess/index')
    }, {
      path: '/projectAssess',
      name: '项目考核-项目部考核',
      component: () => import('@/page/assess/projectAssess')
    }, {
      path: '/allowanceDetail',
      name: '项目考核-津贴详情',
      component: () => import('@/page/assess/allowanceDetail')
    }, {
      path: '/bonusDetail',
      name: '项目考核-奖金详情',
      component: () => import('@/page/assess/bonusDetail')
    }
  ]
})
